<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<c:set var="ctx" value="${pageContext.request.contextPath}" />

<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>系统参数</title>
<%@ include file="/WEB-INF/view/common/include.jsp"%>
<link href="${ctx}/resources/style/main.css" rel="stylesheet">
<script type="text/javascript"
	src="${ctx}/resources/pluginJs/jquery-easyui-1.4.1/easyui-patch.js"></script>
<script type="text/javascript"
	src="${ctx}/resources/pluginJs/zTree/js/jquery.ztree.core-3.5.min.js"></script>
<script type="text/javascript" src="${ctx}/resources/useJs/param/sysparam.js"></script>
<link rel="stylesheet" type="text/css"
	href="${ctx}/resources/pluginJs/jquery-easyui-1.4.1/themes/icon.css">
<link rel="stylesheet" type="text/css"
	href="${ctx}/resources/pluginJs/jquery-easyui-1.4.1/themes/color.css">
<link href="${ctx}/resources/pluginJs/zTree/css/ztree.css"
	rel="stylesheet">
<style type="text/css">
.ztree LI SPAN.button {
	filter: none;
}

.tab_custom {
	bolder-right: 1px solid #95B8E7 !important;
}
</style>
<script type="text/javascript">
var downloadUrl = "${sessionScope.FILE_DOWNLOAD_URL}";
</script>
</head>
<body class="easyui-layout">
	<!-- ------------------ -->
	<div id="main_center" region="center" split="false" bolder="false">
		<div id="aa" class="easyui-layout" data-options="fit : true,bolder : true" style="margin-top:5px; margin-left:4px;padding-left: 4px;padding-right: 5px;padding-bottom: 5px;">
			<!-- 查询 -->
			<div data-options="region:'north',split:false" title="查询条件" style="height:112px;padding:10px;">
				<form id="sysParamForm">
					<table style="width: 90%">
						<tr>
							<td nowrap="nowrap">系统名称：&nbsp;
								<input	class="easyui-textbox" id="sysName" name="sysName" type="text" style="width: 256px;" />
							</td>
							<td nowrap="nowrap">系统编号：&nbsp;
							     <input	class="easyui-textbox" id="sysFlag" name="sysFlag" type="text" style="width: 256px;" />
							</td>
							<td>&nbsp;</td>
						</tr>
						<tr>
							<td nowrap="nowrap">系统域名：&nbsp;
							    <input	class="easyui-textbox" id="sysDomain" name="sysDomain" type="text" style="width: 256px;" />
							</td>
							<td nowrap="nowrap">系统描述：&nbsp;
							    <input	class="easyui-textbox" id="sysDesc" name="sysDesc" type="text" style="width: 256px;" />
							</td>
							<td nowrap="nowrap" class="table_right">
								<a href="#"	onclick="searchSysParam();" class="easyui-linkbutton" icon="icon-search">查询</a>
								<a href="#" onclick="clearForm();" class="easyui-linkbutton" icon="icon-clear">清空</a>
							</td>
						</tr>

					</table>
				</form>
			</div>
			<!-- 表格 -->
			<div region="center">
				<table id="sysparam"></table>
			</div>
		</div>
	</div>
	<!-- toolbar -->
	<div id="tb">
		 <table cellpadding="0" cellspacing="0">
			<tr>
				<td style="padding-left:2px">
					<a href="javascript:void(0);" class="easyui-linkbutton" iconCls="icon-add" plain="true" onclick="add();">新增</a>
					<a href="javascript:void(0);" class="easyui-linkbutton" iconCls="icon-edit" plain="true" onclick="edit();">修改</a>
					<a href="javascript:void(0);" class="easyui-linkbutton" iconCls="icon-remove" plain="true" onclick="del();">删除</a>
				</td>
			</tr>
		 </table>
	</div>
	<!-- 新增系统参数 -->
	<div id="addSysParamWindow" class="easyui-dialog" title="添加参数" style="width: 790px; height: 250px; padding: 10px 20px" mclosed=true closable=false collapsible=false minimizable=false maximizable=false closed="true" modal=true buttons="#dlg-buttons">
		<form id="addSysParam">
			<table style="width: 100%;">
			    <!-- 系统参数基本信息开始 -->
			    <tr>
				    <td nowrap="nowrap" colspan="4">
					    <div style="bolder-bottom:1px solid #ccc;line-height:20px;font-weight:bold;margin-bottom:10px;margin-bottom:10px;padding:5px 0;">
 							<label><img src="${ctx}/resources/images/t_leader.png" alt="Ballade" width="16px" height="16px" style="margin-right: 2px;"></label>
					  		  系统参数基本信息
					    </div>
				    </td>
				</tr>
				<tr>
				    <td nowrap="nowrap">系统编号：&nbsp;
					    <input	class="easyui-validatebox" id="sysFlag" data-options="required:true" name="sysFlag"  validType="length[0,50]" style="width: 162px;"/>
					</td>

				    <td nowrap="nowrap">系统名称：&nbsp;
					    <input	class="easyui-validatebox" id="sysName" data-options="required:true" name="sysName"  validType="length[0,50]" style="width: 162px;"/>
					</td>
				</tr>
                   <tr>
                       <td nowrap="nowrap">系统域名：&nbsp;
					    <input	class="easyui-validatebox" id="sysDomain" data-options="required:true" name="sysDomain"  validType="length[0,100]" style="width: 162px;"/>
					</td>
					<td nowrap="nowrap">系统描述：&nbsp;
					    <input	class="easyui-validatebox" id="sysDesc" data-options="required:false" name="sysDesc"  validType="length[0,500]" style="width: 162px;"/>
					</td>
                   </tr>
				<!-- 系统参数基本信息结束 -->
			</table>
		</form>
	</div>
	<!-- 编辑系统参数-->
		<div id="editSysParamWindow" class="easyui-dialog" style="width: 790px; height: 250px; padding: 10px 20px" mclosed=true closable=false collapsible=false minimizable=false maximizable=false closed="true"  modal=true  buttons="#edit-buttons">
			<form id="editSysParam">
				<input type="hidden" name="sysId" id="sysId"/>
				<table style="width: 100%;">
			    <tr>
				    <td nowrap="nowrap" colspan="4">
					    <div style="bolder-bottom:1px solid #ccc;line-height:20px;font-weight:bold;margin-bottom:10px;margin-bottom:10px;padding:5px 0;">
 							<label><img src="${ctx}/resources/images/t_leader.png" alt="Ballade" width="16px" height="16px" style="margin-right: 2px;"></label>
					  		  系统参数基本信息
					    </div>
				    </td>
				</tr>
				<tr>
				    <td nowrap="nowrap">系统编号：&nbsp;
					    <input	class="easyui-validatebox" id="sysFlag" data-options="required:true" name="sysFlag"  validType="length[0,50]" style="width: 162px;"/>
					</td>

				    <td nowrap="nowrap">系统名称：&nbsp;
					    <input	class="easyui-validatebox" id="sysName" data-options="required:true" name="sysName"  validType="length[0,50]" style="width: 162px;"/>
					</td>
				</tr>
                   <tr>
                       <td nowrap="nowrap">系统域名：&nbsp;
					    <input	class="easyui-validatebox" id="sysDomain" data-options="required:true" name="sysDomain"  validType="length[0,100]" style="width: 162px;"/>
					</td>
					<td nowrap="nowrap">系统描述：&nbsp;
					    <input	class="easyui-validatebox" id="sysDesc" data-options="required:false" name="sysDesc"  validType="length[0,500]" style="width: 162px;"/>
					</td>
                   </tr>
			</table>
			</form>
		</div>
		<div style="text-align: center; " id="edit-buttons">
			<a id="btnSave" href="#" class="easyui-linkbutton c6" iconCls="icon-ok" onclick="editSys()" style="width: 75px" >保存</a>
			<a id="btnCancel" href="#" class="easyui-linkbutton" iconCls="icon-cancel" 	onclick="javascript:$('#editSysParamWindow').dialog('close')"  style="width: 75px" >关闭</a>
		</div>
	<!-- 新增窗口保存关闭按钮 -->
	<div style="text-align: center;" id="dlg-buttons">
		<a id="btnSave" href="#" class="easyui-linkbutton c6" iconCls="icon-ok"  onclick="addSys()" style="width: 75px" >保存</a>
		<a id="btnCancel" href="#" class="easyui-linkbutton" iconCls="icon-cancel"  style="width: 75px"  onclick="javascript:$('#addSysParamWindow').dialog('close')">关闭</a>
	</div>
	<!-- ------------------ -->
</body>
</html>
